/*
 * preProcessor.h
 *
 *  Created on: May 5, 2014
 *      Author: Hercules
 */

#ifndef PREPROCESSOR_H_
#define PREPROCESSOR_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tokenGetter.h"

typedef struct equList {
	char symbol[101];
	char value[101];
	struct equList* next;
} EquList;

void generatePreProcessedFile(FILE *, char *);
void getTokenAndEquList(FILE*, TokenList *, EquList *);
TokenList* getTokenListWithEquSolved(FILE*);
TokenList* solveEquSymbols(TokenList* token_list, EquList *);
TokenList* solveIfSymbols(TokenList*);
void freeTokenList(TokenList*);
TokenList* formatSections(TokenList* token_list);

#endif /* PREPROCESSOR_H_ */
